<h1>2. Attach Files</h1>

<p>
  <b>Title:</b>
  <%=h @proposal.title %>
</p>

<p>
  <b>Description:</b>
  <%=h @proposal.description %>
</p>

<table>
  <tr>
    <th>Comment</th>
  </tr>

<% @proposal.documents.each do |document| %>
  <tr>
    <td><%=h document.comment %></td>
    <td><%= link_to 'Show', proposal_document_path(@proposal, document) %> |
	<%= link_to 'Edit', edit_proposal_document_path(@proposal, document) %> | <%= link_to 'Destroy', proposal_document_path(@proposal, document), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>

</table>

<%= link_to 'Edit', edit_proposal_path(@proposal) %> |
<%= link_to 'Back', proposals_path %>